import request from '@neu/biz-core/utils/request'

export const getConfig = () => {
  return request({
    url: '/auth/api/w/auth/oauth2',
    method: 'get'
  })
}

export const create = (data) => {
  return request({
    url: '/auth/api/w/auth/oauth2',
    data,
    method: 'post'
  })
}

export const remove = (id) => {
  return request({
    url: '/auth/api/w/auth/oauth2/' + id,
    method: 'delete'
  })
}

export const update = (id, data) => {
  return request({
    url: '/auth/api/w/auth/oauth2/' + id,
    data,
    method: 'put'
  })
}
